//
//  ASRManager.h
//  ASR_Demo
//
//  Created by marco on 16/3/9.
//  Copyright © 2016年 Marco. All rights reserved.
//

#import <Foundation/Foundation.h>


#if 0

#define ASR_LOG(format, ...) printf (format, ##__VA_ARGS__)

#else

#define ASR_LOG(format, ...) do{}while(0)

#endif

/*****************************/

#define kASR_TYPE_KEDAXUNFEI         0  //科大讯飞
#define kASR_TYPE_JIEGONGHUASHENG    1  //捷通华声

#define ASR_TYPE kASR_TYPE_KEDAXUNFEI   //使用哪一种SDK


#define KEDAXUNFEI_SPEAK_TIME_OUT   8 //科大讯飞语音强行截取时间 单位秒

/****************************/


typedef NS_ENUM(NSInteger,ASRSystemType)
{
    kASRSystemType_ZH = 0,
    kASRSystemType_UYGHUR
};
extern NSString * const g_kASRSampleRateRate_8kb;
extern NSString * const g_kASRSampleRateRate_16kb;


extern NSString * const g_kASRComplete_ZH;
extern NSString * const g_kASRComplete_UYGHUR;


@interface ASRManager : NSObject

+(instancetype) sharedManager;


- (int) realtimeRecog:(NSData*)pData type:(ASRSystemType)pType;


- (int) openSystem:(ASRSystemType)pType samplingRate:(NSString*)pSamplingRate;
- (void)closeSystem;



@end
